<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * SearchBooking Controller
 * Build by Phuc Nguyen
 * Contact : nguyenvanphuc0626@gmail.com
 */

class SearchBooking_model extends MY_Model{
	
	public function __construct(){
		parent::__construct();
		//$this->table_name = 'book_adminlog';
	}
        
        public function statitic(){
            $this->db->select('count(*) AS total');
            $this->db->from($this->table_name);
            $this->db->like('lastLogin',$params1);
            $this->db->like('logAction',$params2);
            $query = $this->db->get();
//            echo $this->db->last_query();exit;
            return $query->result(); 
        }
}